package com.punch.common.dto.system.area;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;


/**
 * AreaAddForm-地区新增表单
 *
 * @author wujj
 * @version 1.0.0
 * @since 2020/6/4 19:31
 */
@Data
@ApiModel(description = "地区新增表单")
public class AreaDTO implements Serializable {

    @ApiModelProperty(name = "areaId", notes = "地区id,新增操作为空,修改操作需要")
    private Integer areaId;

    @ApiModelProperty(name = "parentCode", notes = "父级地区编码")
    private Integer parentId;

    @NotBlank(message = "地区编码不能为空")
    @ApiModelProperty(name = "adCode", notes = "地区编码", required = true)
    private String adCode;

    @NotBlank(message = "地区简称不能为空")
    @ApiModelProperty(name = "shortName", notes = "地区简称", required = true)
    private String shortName;

    @NotBlank(message = "地区全称不能为空")
    @ApiModelProperty(name = "fullName", notes = "地区全称", required = true)
    private String fullName;


    /**
     * 经度
     */
    @ApiModelProperty(name = "lng", notes = "经度", required = true)
    private String lng;

    /**
     * 纬度
     */
    @ApiModelProperty(name = "lat", notes = "纬度", required = true)
    private String lat;

    @ApiModelProperty(name = "status", notes = "状态,默认启用")
    private Integer status;

    @ApiModelProperty(name = "sortBy", notes = "排序")
    private Integer sortBy;

}
